
import smtplib
import time
from email.mime.text import MIMEText




def sendEmail():
    content = "记得完成每日一题哦!"
    sender = 'xxx@qq.com'
    receiver = 'xxx@qq.com'
    user = 'xxx@qq.com'
    pwd = "123456"

    conn = smtplib.SMTP_SSL('smtp.qq.com', 465)
    conn.login(user, pwd)
    conn.sendmail(sender, receiver, content)

while True:
    sendEmail()
    time.sleep(24 * 60 * 60)